import requests

session = requests.session()

login_url = 'https://vip.hdbz.net/auth/ajaxlogin'

res = session.post(login_url,data={"username":"18538610882","userpwd":"wangXU0706"})
print(res.cookies)


favorite_list_url = 'https://vip.hdbz.net/site/FavoriteList?page=1&limit=10'
favorite_res = session.get(favorite_list_url)
# print(favorite_res.json().get('data'))
# favorite_datas = favorite_res.json().get('data')
# for favorite_data in favorite_datas:
#     print(favorite_data['favoriteId'],favorite_data['favoriteThumb'])

add_favorite_url = 'https://vip.hdbz.net/site/ImageStore'
add_favorite_response = session.post(add_favorite_url,data={
'aid':'179208',
'imageurl':'/wallpaper/202510/179208.html'
})
print(add_favorite_response.text)
